<template>
  <div>
    <el-button type="danger" @click="add()">添加</el-button>
    <v-add :obj="obj"></v-add>
    <v-list></v-list>
  </div>
</template>

<script>
import vAdd from "./components/add.vue";
import vList from "./components/list.vue";
export default {
  data() {
    return {
      obj: {
        isTrue: false,
        vAdd: true,
      },
    };
  },
  components: {
    vAdd,
    vList,
  },
  methods: {
    //添加
    add() {
      this.obj.isTrue = true;
    },
    //点击了编辑
  },
};
</script>

<style>
</style>